package com.example.data.factory.common.Dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.util.List;

@Data
public class InsertDictDto {
    @ApiModelProperty(value = "码表名称", required = true)
    @Pattern(regexp = "^[\\u4E00-\\u9FA5A-Za-z]+$", message = "只能包含中文字符或大小写英文")
    private String dictName;
    @ApiModelProperty("码表说明")
    private String description;
    @ApiModelProperty(value = "码表说明",required = true)
   private List<InsertDictDataDto> dictDataDtos;
}
